package main

import (
	"fmt"
	"time"
)

var ch chan int = make(chan int)

func foo() {
	ch <- 123
}

func foo2() {
	fmt.Println(<-ch)
}

func main() {
	go foo()
	time.Sleep(time.Second * 3)
	//fmt.Println(<-ch)
	//go foo2()

	//time.Sleep(time.Second)

}
